package com.uni.service.impl;

import com.uni.common.util.PageBean;
import com.uni.entity.SupplyCondition;
import com.uni.mapper.SupplyConditionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.ws.soap.Addressing;
import java.util.List;

@Service
public class SupplyConditionService {

    @Autowired
    private SupplyConditionMapper supplyConditionMapper;

    public List<SupplyCondition> findList(PageBean<SupplyCondition> pageBean){
        return supplyConditionMapper.findList(pageBean);
    }

    public int countList(PageBean<SupplyCondition> pageBean){
        return supplyConditionMapper.countList(pageBean);
    }

    public Integer insert(SupplyCondition supplyCondition){
        return supplyConditionMapper.insert(supplyCondition);
    }

    public Integer update(SupplyCondition supplyCondition){
        return supplyConditionMapper.update(supplyCondition);
    }
    public Integer delete(List<String> ids){
        return supplyConditionMapper.delete(ids);
    }
}
